<?php

namespace App\Abstracts\Traits;


trait ModelAppendStatusNameTrait
{
    public function eventOnConstructModelAppendStatusNameTrait(){
        $this->append('status_name');
    }

    public function getStatusNameAttribute(){
        return 1 == $this->getAttribute('status') ? "启用" : "禁用" ;
    }

}
